# -*- coding: utf-8 -*-

from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^list/$', views.CourseListView.as_view(), name='course_list'),
    url(r'^detail/(?P<course_id>\d+)/$', views.CourseDetailView.as_view(), name='course_detail'),
    url(r'^info/(?P<course_id>\d+)/$', views.CourseInfoView.as_view(), name='course_info'),
    url(r'^comments/(?P<course_id>\d+)/$', views.CommentView.as_view(), name='course_comments'),
    # 添加课程评论
    url(r'^add_comments/$', views.AddCommentsView.as_view(), name='add_comment'),

    url(r'^video/(?P<video_id>\d+)/$', views.VideoPlayView.as_view(), name='video_play'),
]

